// routes/permissions.js
const express = require('express');
const router = express.Router();
const pool = require('../DB/db.js'); // 引入数据库连接池

// 定义获取 manage 数据表内容的路由及逻辑
router.get('/', async (req, res) => {
    const [rows] = await pool.execute('SELECT * FROM manage');
    res.json(rows);
});


module.exports = router;